import { http } from "../utils/http"
// 根据商品id获取商品详情
export const getGoodsByIdAPI = (id) => {
  return http({
    url: '/goods',
    method: 'get',
    data: {id}
  })
}
// 加入购物车
export const postMemberCartAPI = (data) => {
  return http({
    url: '/member/cart',
    method: 'post',
    data
  })
}